<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<table border="1" cellspacing="0"align="center">
			<tr align="center">
				<td width=300>ID</td>
				<td width=300>이름</td>
				<td width=300>영어 이름</td>
				<td width=300>알콜</td>
				<td width=300>가격 강도</td>
				<td width=300>제조사</td>
				<td width=300>나라</td>
				<td width=300>단맛</td>
				<td width=300>쓴맛</td>
				<td width=300>청량감</td>
				<td width=300>색</td>
				<td width=300>이미지</td>
				<td>삭제 버튼</td>
				<td>수정 버튼</td>
				</tr>
				<c:forEach items="${requestScope.beerInfo }" var="beerInfo">
				<tr>
				<td>${beerInfo.beerInfoId }</td>
				<td>${beerInfo.beerInfoName }</td>
				<td>${beerInfo.beerInfoEngName }</td>
				<td>${beerInfo.alcohol }</td>
				<td>${beerInfo.price }</td>
				<td>${beerInfo.manufacturer }</td>
				<td>${beerInfo.country }</td>
				<td>${beerInfo.sweetness }</td>
				<td>${beerInfo.bitters }</td>
				<td>${beerInfo.sensationOfRefreshment }</td>
				<td>${beerInfo.color }</td>
				<td><img class="beer_img" src="${beerInfo.imageUrl }" width=100 height=auto></td>
				<td><input type="button" value="삭제" onclick="location.href='${initParam.rootPath }/adminBeer/deleteAdminBeer.do?beerInfoId=${beerInfo.beerInfoId }'" />
				<td><input type="button" value="수정" onclick="location.href='${initParam.rootPath }/adminBeer/updateAdminBeerById.do?beerInfoId=${beerInfo.beerInfoId }'" />
				</tr>
				</c:forEach>
</table>
<a href="${initParam.rootPath }/admin/login_success.jsp">관리자 페이지로 이동</a>


</body>
</html>